﻿<%@ Page Language="C#" MasterPageFile="~/Workflow/WFConfigure/MpWorkflow.master" AutoEventWireup="true" Inherits="WorkFlow_WFConfigure_WFVarTemplateList" Title="Untitled Page" Codebehind="WFVarTemplateList.aspx.cs" %>
<%@ MasterType VirtualPath="~/WorkFlow/WFConfigure/MpWorkflow.master" %>
<%@ Import Namespace="Honestysoft.Workflow.Model" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">

<div style="width:98%; padding-top:3px; text-align:center;margin:2px"> 
<table width="100%"  border="0" cellspacing="0" cellpadding="5" >
  <tr>
    <td><div align="right" > 
    <input type="button" class="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'" onclick='javascript:mOpenDlg("<%=WorkflowApply.Home%>WorkFlow/WFConfigure/WFVarTemplateEdit.aspx",600,250,"<%=WorkflowApply.Home%>","新增变量模板")' name="AddWFVarTemplate" value="新增" >
      <asp:Button ID="btnDel" Text="删除" OnClick="btnDel_Click" OnClientClick="return mCanDelete('chkID','请选择要删除的记录！');"  CssClass="btn_normal" onmouseover="this.className='btn_active'" onmouseout="this.className='btn_normal'"/>  
      
    </div></td>
  </tr>
</table>
<table width="100%"  border="1" cellspacing="0" cellpadding="1" class="t1" id="tGrid">
  <tr class="HeaderStyle">
    <td style="width:30px" align="center" >
        <input type="checkbox" name="chkAll" value="checkbox" onclick='javascript:mCheckAll(this,"chkID")' />
    </td>
	<td  align="center">名称</td>	
	<td  align="center">应用范围</td>	
	<td  align="center">数据类型</td>	
	<td  align="center">初始值</td>	
	<td align="center">说明</td>	
	<td style="width:80px" align="center">操作</td>
  </tr>
  <asp:Repeater ID="repWF_VarTemplate" runat="server" >
  <ItemTemplate>
  <tr>
<td align="center" >
        <input type="checkbox" name="chkID" id="chk<%# DataBinder.Eval(Container.DataItem,"ID") %>"  value="<%# DataBinder.Eval(Container.DataItem,"ID") %>" >
    </td>
	<td align="center"><%# DataBinder.Eval(Container.DataItem, "Name")%></td>	
	<td align="center"><%# WFPublicFun.GetEnumText(typeof(WFEnumData.VarArea), DataBinder.Eval(Container.DataItem, "Type")+"")%></td>	
	<td align="center"><%# WFPublicFun.GetEnumText(typeof(WFEnumData.DataType), DataBinder.Eval(Container.DataItem, "DataType")+"")%></td>	
	<td align="center"><%# DataBinder.Eval(Container.DataItem, "IniValue")%></td>	
	<td align="left"><%# DataBinder.Eval(Container.DataItem, "Description")%></td>	
<td align="center">
	<%# WorkflowApply.WFScript.GetDataItemEditButton(WorkflowApply.Home+ "WorkFlow/WFConfigure/WFVarTemplateEdit.aspx?ID=" + DataBinder.Eval(Container.DataItem, "ID") + "", "编辑",600,250,"编辑变量模板")%><%# WorkflowApply.WFScript.GetDataItemDeleteButton( DataBinder.Eval(Container.DataItem, "ID") + "", btnDel)%>
</td>
  </tr>  
  </ItemTemplate>
  </asp:Repeater>
</table>
</div>
</asp:Content>